package io.renren.modules.study.service.impl;

import io.renren.modules.study.dao.CoursePlanDao;
import io.renren.modules.study.entity.CoursePlanEntity;
import io.renren.modules.study.entity.CoursePlanScheduleEntity;
import io.renren.modules.study.service.CoursePlanService;
import io.renren.modules.sys.dao.TokenDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class CoursePlanServiceImpl implements CoursePlanService {

    @Autowired
    CoursePlanDao coursePlanDao;

   @Autowired
   TokenDao tokenDao;

    @Override
    public void createCoursePlan(Map map) {
        coursePlanDao.createCoursePlan(map);
    }

    @Override
    public void delCoursePlan(Map map) {
        coursePlanDao.delCoursePlan(map);
    }

    @Override
    public void updateCoursePlan(Map map) {
        coursePlanDao.updateCoursePlan(map);
    }

    @Override
    public List getCoursePlan(Map map) {
        return coursePlanDao.getCoursePlan(map);
    }

    @Override
    public void makeCourseInCoursePlan(Map map) {
        coursePlanDao.makeCourseInCoursePlan(map);
    }

    @Override
    public List getCourseInMyPlan(Map map) {
        return coursePlanDao.getCourseInMyPlan(map);
    }

    @Override
    public CoursePlanScheduleEntity checkCourseInMyPlan(Map map) {
        return coursePlanDao.checkCourseInMyPlan(map);
    }

    @Override
    public void delCourseInMyCoursePlan(Map map) {
        coursePlanDao.delCourseInMyCoursePlan(map);
    }

    @Override
    public List getCourseNotInMyPlan(Map map) {
        return coursePlanDao.getCourseNotInMyPlan(map);
    }

    @Override
    public List getCourseIdNotInMyPlan(Long userId) {
        return coursePlanDao.getCourseIdNotInMyPlan(userId);
    }

    @Override
    public void updateTime(Map map) {
        coursePlanDao.updateTime(map);
    }

    @Override
    public int getCourseCountInMyPlan(Map map) {
        return coursePlanDao.getCourseCountInMyPlan(map);
    }
}
